@{ 
    Layout.Title = T("PayPal Returned").ToString();
    
    string status = "";
    if (ViewData["status"] != null) {
        status = ViewData["status"].ToString();
    }
    string returnMessage = "";
    if (ViewData["message"] != null) {
        returnMessage = ViewData["message"].ToString();   
    }
}

<h1>PayPal Processing Status</h1>
<p>
    <strong>@Html.Raw(HttpUtility.HtmlDecode(returnMessage))</strong>
</p>
@if (status == "success") {
    <p>
        A receipt of your purchase will be sent to the email address you utilized with your payment. If a receipt does not appear, 
        be sure to check your spam filter to ensure it was not filtered out.
    </p>
    <p>
        If the product you ordered provides additional access on the website, it may still take a while for this to become available. 
        You will receive an email when everything is ready for you. Should you have any questions on your order, feel free to contact 
        us and we will be glad to help.
    </p>
}
else {
    <p>
        If you receive a receipt from PayPal showing your payment went through, please contact us and we will apply your payment in 
        our system and have your product released. 
    </p>
    <p>
        If your payment did not go through at PayPal, please attempt to purchase your item again.
    </p>
    <p>
        If you are still not successful, feel free to contact us and we will work with PayPal to determine why your payment is not 
        being processed. Sorry for the incovenience.
    </p>
}
